.class Les/qk$a;
.super Ljava/lang/Object;
.source "DailyDataLoader.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/qk;->a(Les/qk$d;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/qk$d;

.field final synthetic b:Les/qk;


# direct methods
.method constructor <init>(Les/qk;Les/qk$d;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/qk$a;->b:Les/qk;

    iput-object p2, p0, Les/qk$a;->a:Les/qk$d;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 19

    move-object/from16 v0, p0

    .line 1
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    const/4 v2, 0x7

    .line 2
    invoke-virtual {v1, v2}, Ljava/util/Calendar;->get(I)I

    move-result v3

    const/4 v4, 0x1

    sub-int/2addr v3, v4

    .line 3
    invoke-virtual {v1, v2, v3}, Ljava/util/Calendar;->set(II)V

    const/16 v3, 0xb

    const/4 v5, 0x0

    .line 4
    invoke-virtual {v1, v3, v5}, Ljava/util/Calendar;->set(II)V

    .line 5
    invoke-virtual {v1}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v6

    const/16 v8, 0x18

    .line 6
    invoke-virtual {v1, v3, v8}, Ljava/util/Calendar;->set(II)V

    .line 7
    invoke-virtual {v1}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v8

    .line 8
    new-instance v1, Les/su;

    invoke-direct {v1}, Les/su;-><init>()V

    .line 9
    invoke-virtual {v1, v4}, Les/su;->a(I)V

    const/4 v3, 0x2

    .line 10
    invoke-virtual {v1, v3}, Les/su;->a(I)V

    const/4 v10, 0x3

    .line 11
    invoke-virtual {v1, v10}, Les/su;->a(I)V

    const/4 v10, 0x4

    .line 12
    invoke-virtual {v1, v10}, Les/su;->a(I)V

    const/4 v10, 0x6

    .line 13
    invoke-virtual {v1, v10}, Les/su;->a(I)V

    const/4 v10, 0x5

    .line 14
    invoke-virtual {v1, v10}, Les/su;->a(I)V

    .line 15
    invoke-virtual {v1, v2}, Les/su;->a(I)V

    const/16 v2, 0x64

    .line 16
    invoke-virtual {v1, v2}, Les/su;->a(I)V

    .line 17
    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    invoke-virtual {v1, v2, v6}, Les/su;->c(Ljava/lang/Long;Ljava/lang/Long;)V

    .line 18
    invoke-static {}, Les/qu;->e()Les/qu;

    move-result-object v2

    invoke-virtual {v2, v1}, Les/qu;->a(Les/su;)Ljava/util/List;

    move-result-object v1

    .line 19
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "all files size = "

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v6

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const-string v6, "newFileDaily"

    invoke-static {v6, v2}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 20
    new-instance v2, Ljava/util/HashMap;

    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    .line 21
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Les/ev;

    .line 22
    iget-object v11, v0, Les/qk$a;->b:Les/qk;

    invoke-virtual {v7}, Les/dv;->g()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v7}, Les/ev;->r()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v7}, Les/ev;->t()J

    move-result-wide v14

    move-object/from16 v16, v2

    invoke-static/range {v11 .. v16}, Les/qk;->a(Les/qk;Ljava/lang/String;Ljava/lang/String;JLjava/util/Map;)Les/rk;

    goto :goto_0

    .line 23
    :cond_0
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 24
    invoke-interface {v2}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 25
    invoke-static {v1}, Ljava/util/Collections;->sort(Ljava/util/List;)V

    .line 26
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "all groups size = "

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v7

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v6, v2}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 27
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const/4 v7, 0x0

    const-wide/16 v8, 0x0

    move-wide v12, v8

    const/4 v11, 0x0

    .line 28
    :goto_1
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v14

    if-ge v11, v14, :cond_3

    .line 29
    invoke-interface {v1, v11}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Les/rk;

    .line 30
    iget-wide v3, v14, Les/rk;->b:J

    add-long/2addr v12, v3

    if-ge v11, v10, :cond_1

    .line 31
    iput v11, v14, Les/rk;->c:I

    .line 32
    invoke-interface {v2, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    :cond_1
    if-nez v7, :cond_2

    .line 33
    new-instance v7, Les/rk;

    invoke-direct {v7}, Les/rk;-><init>()V

    .line 34
    iput-wide v8, v7, Les/rk;->b:J

    .line 35
    iget-object v3, v0, Les/qk$a;->b:Les/qk;

    invoke-static {v3}, Les/qk;->a(Les/qk;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v7, Les/rk;->a:Ljava/lang/String;

    .line 36
    :cond_2
    iget-wide v3, v7, Les/rk;->b:J

    iget-wide v8, v14, Les/rk;->b:J

    add-long/2addr v3, v8

    iput-wide v3, v7, Les/rk;->b:J

    :goto_2
    add-int/lit8 v11, v11, 0x1

    const/4 v3, 0x2

    const/4 v4, 0x1

    const-wide/16 v8, 0x0

    goto :goto_1

    :cond_3
    if-eqz v7, :cond_4

    .line 37
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v1

    iput v1, v7, Les/rk;->c:I

    .line 38
    invoke-interface {v2, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 39
    :cond_4
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "result size = "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v6, v1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 40
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "new file total size = "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v12, v13}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v6, v1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 41
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v1

    .line 42
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v3

    .line 43
    new-instance v4, Ljava/io/File;

    invoke-direct {v4, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 44
    invoke-virtual {v4}, Ljava/io/File;->getTotalSpace()J

    move-result-wide v6

    .line 45
    invoke-virtual {v4}, Ljava/io/File;->getUsableSpace()J

    move-result-wide v3

    .line 46
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    const-wide/16 v8, 0x0

    :cond_5
    :goto_3
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v10

    if-eqz v10, :cond_6

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/String;

    .line 47
    invoke-static {v10}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_5

    .line 48
    new-instance v11, Ljava/io/File;

    invoke-direct {v11, v10}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 49
    invoke-virtual {v11}, Ljava/io/File;->getTotalSpace()J

    move-result-wide v17

    add-long v8, v8, v17

    .line 50
    invoke-virtual {v11}, Ljava/io/File;->getUsableSpace()J

    goto :goto_3

    .line 51
    :cond_6
    new-instance v1, Les/pk;

    invoke-direct {v1}, Les/pk;-><init>()V

    .line 52
    iput-wide v12, v1, Les/pk;->c:J

    .line 53
    iput-wide v8, v1, Les/pk;->d:J

    .line 54
    invoke-virtual {v1, v2}, Les/pk;->a(Ljava/util/List;)V

    .line 55
    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v8

    const/high16 v9, 0x42c80000    # 100.0f

    if-eqz v8, :cond_7

    .line 56
    iput-boolean v5, v1, Les/pk;->e:Z

    const/4 v2, 0x2

    new-array v2, v2, [F

    long-to-float v3, v3

    mul-float v3, v3, v9

    long-to-float v4, v6

    div-float/2addr v3, v4

    sub-float/2addr v9, v3

    aput v9, v2, v5

    const/4 v4, 0x1

    aput v3, v2, v4

    goto :goto_5

    :cond_7
    const/4 v4, 0x1

    .line 57
    iput-boolean v4, v1, Les/pk;->e:Z

    .line 58
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v3

    new-array v3, v3, [F

    .line 59
    :goto_4
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v4

    if-ge v5, v4, :cond_8

    .line 60
    invoke-interface {v2, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/rk;

    iget-wide v6, v4, Les/rk;->b:J

    long-to-float v4, v6

    mul-float v4, v4, v9

    long-to-float v6, v12

    div-float/2addr v4, v6

    .line 61
    aput v4, v3, v5

    add-int/lit8 v5, v5, 0x1

    goto :goto_4

    :cond_8
    move-object v2, v3

    .line 62
    :goto_5
    iput-object v2, v1, Les/pk;->b:[F

    .line 63
    iget-object v2, v0, Les/qk$a;->b:Les/qk;

    iget-object v3, v0, Les/qk$a;->a:Les/qk$d;

    invoke-static {v2, v1, v3}, Les/qk;->a(Les/qk;Les/pk;Les/qk$d;)V

    return-void
.end method
